]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
blur-effect: Remove modify_paint_volume vfunc override
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 10 Feb 2020 14:27:34 +0000 (15:27 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 12 Feb 2020 14:11:02 +0000 (11:11 -0300)
If we modify the paint volume to make it larger and include the blur
radius, we should also use the gained size and draw something there.
Since the framebuffers are only the size of the actor to blur, we're not
doing that right now anyway, so remove the vfunc override.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991

src/shell-blur-effect.c

index 01dd797bd9c774ce4f4ae46270a37bcf0a2654c8..ffabff11455cd44938f8ddb96bc45ab2bb5d1244 100644 (file)
@@ -827,32 +827,6 @@ fail:
   clutter_actor_continue_paint (self->actor, paint_context);
 }
 
-static gboolean
-shell_blur_effect_modify_paint_volume (ClutterEffect      *effect,
-                                       ClutterPaintVolume *volume)
-{
-  ShellBlurEffect *self = SHELL_BLUR_EFFECT (effect);
-  graphene_point3d_t origin;
-  float width;
-  float height;
-
-  clutter_paint_volume_get_origin (volume, &origin);
-  width = clutter_paint_volume_get_width (volume);
-  height = clutter_paint_volume_get_height (volume);
-
-  origin.y -= self->sigma;
-  origin.x -= self->sigma;
-
-  height += 2 * self->sigma;
-  width += 2 * self->sigma;
-
-  clutter_paint_volume_set_origin (volume, &origin);
-  clutter_paint_volume_set_width (volume, width);
-  clutter_paint_volume_set_height (volume, height);
-
-  return TRUE;
-}
-
 static void
 shell_blur_effect_finalize (GObject *object)
 {
@@ -941,7 +915,6 @@ shell_blur_effect_class_init (ShellBlurEffectClass *klass)
   meta_class->set_actor = shell_blur_effect_set_actor;
 
   effect_class->paint = shell_blur_effect_paint;
-  effect_class->modify_paint_volume = shell_blur_effect_modify_paint_volume;
 
   properties[PROP_SIGMA] =
     g_param_spec_int ("sigma",